<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libschc: picocoap.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libschc
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">picocoap.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdint.h&gt;</code><br />
<code>#include &lt;stddef.h&gt;</code><br />
</div>
<p><a href="picocoap_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpcoap__option__names.html">pcoap_option_names</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Packet Data Unit.  <a href="structpcoap__pdu.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpcoap__option.html">pcoap_option</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">CoAP Option.  <a href="structpcoap__option.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structpcoap__payload.html">pcoap_payload</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">CoAP Payload.  <a href="structpcoap__payload.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a42e24df1551401726ed936baddb2a2ec"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a42e24df1551401726ed936baddb2a2ec">COAP_ACK_TIMEOUT</a>&#160;&#160;&#160;2</td></tr>
<tr class="memdesc:a42e24df1551401726ed936baddb2a2ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">CoAP Defined Parameters.  <a href="picocoap_8h.html#a42e24df1551401726ed936baddb2a2ec">More...</a><br /></td></tr>
<tr class="separator:a42e24df1551401726ed936baddb2a2ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a343c27d1c7ad3346aec70646caa341a0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a343c27d1c7ad3346aec70646caa341a0">COAP_ACK_RANDOM_FACTOR</a>&#160;&#160;&#160;1.5</td></tr>
<tr class="separator:a343c27d1c7ad3346aec70646caa341a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab099eef660b4c5b038b4b87239a82c35"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#ab099eef660b4c5b038b4b87239a82c35">COAP_MAX_RETRANSMIT</a>&#160;&#160;&#160;4</td></tr>
<tr class="separator:ab099eef660b4c5b038b4b87239a82c35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5733f3616dbb5ae758b062296da6f843"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a5733f3616dbb5ae758b062296da6f843">COAP_NSTART</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a5733f3616dbb5ae758b062296da6f843"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac74e78ce8eb169a24787638b4c2074d7"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#ac74e78ce8eb169a24787638b4c2074d7">COAP_DEFAULT_LEISURE</a>&#160;&#160;&#160;5</td></tr>
<tr class="separator:ac74e78ce8eb169a24787638b4c2074d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ed23e020e732dda3a360191f231da7b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a2ed23e020e732dda3a360191f231da7b">COAP_PROBING_RATE</a>&#160;&#160;&#160;1</td></tr>
<tr class="separator:a2ed23e020e732dda3a360191f231da7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e0313ab0ba8fd48729bd8d77cc34ae3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a9e0313ab0ba8fd48729bd8d77cc34ae3">COAP_MAX_TRANSMIT_SPAN</a>&#160;&#160;&#160;45</td></tr>
<tr class="separator:a9e0313ab0ba8fd48729bd8d77cc34ae3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2acd5582df0fb73b3b823b2fa5b157b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#ad2acd5582df0fb73b3b823b2fa5b157b">COAP_MAX_TRANSMIT_WAIT</a>&#160;&#160;&#160;93</td></tr>
<tr class="separator:ad2acd5582df0fb73b3b823b2fa5b157b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc147063d422cfed3703e74cd222caef"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#adc147063d422cfed3703e74cd222caef">COAP_MAX_LATENCY</a>&#160;&#160;&#160;100</td></tr>
<tr class="separator:adc147063d422cfed3703e74cd222caef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44facf47657ac3f4d1075ca9f51ba24b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a44facf47657ac3f4d1075ca9f51ba24b">COAP_PROCESSING_DELAY</a>&#160;&#160;&#160;2</td></tr>
<tr class="separator:a44facf47657ac3f4d1075ca9f51ba24b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0621265cdaf30c81a9ef53ecb9f51e56"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a0621265cdaf30c81a9ef53ecb9f51e56">COAP_MAX_RTT</a>&#160;&#160;&#160;202</td></tr>
<tr class="separator:a0621265cdaf30c81a9ef53ecb9f51e56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25528ec74a52f6c3c1c90298e797cae4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a25528ec74a52f6c3c1c90298e797cae4">COAP_EXCHANGE_LIFETIME</a>&#160;&#160;&#160;247</td></tr>
<tr class="separator:a25528ec74a52f6c3c1c90298e797cae4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87fd7d7dd618371cbc930e30bf1c27d9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a87fd7d7dd618371cbc930e30bf1c27d9">COAP_NON_LIFETIME</a>&#160;&#160;&#160;145</td></tr>
<tr class="separator:a87fd7d7dd618371cbc930e30bf1c27d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32c693bd3dc87d85f8256028e9f0e0bf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a32c693bd3dc87d85f8256028e9f0e0bf">COAP_OPTIONS_LENGTH</a>&#160;&#160;&#160;16</td></tr>
<tr class="separator:a32c693bd3dc87d85f8256028e9f0e0bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a4ae82558a4b549c2ae73f851df0d6cb2"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1">coap_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a></td></tr>
<tr class="memdesc:a4ae82558a4b549c2ae73f851df0d6cb2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Status Codes.  <a href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">More...</a><br /></td></tr>
<tr class="separator:a4ae82558a4b549c2ae73f851df0d6cb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa85087040a9a41e7c24d8ae00f24e02b"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74">coap_version</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#aa85087040a9a41e7c24d8ae00f24e02b">pcoap_version</a></td></tr>
<tr class="memdesc:aa85087040a9a41e7c24d8ae00f24e02b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Protocol Versions.  <a href="picocoap_8h.html#aa85087040a9a41e7c24d8ae00f24e02b">More...</a><br /></td></tr>
<tr class="separator:aa85087040a9a41e7c24d8ae00f24e02b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac67fe50885918b21eee276d621605942"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429">coap_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#ac67fe50885918b21eee276d621605942">pcoap_type</a></td></tr>
<tr class="memdesc:ac67fe50885918b21eee276d621605942"><td class="mdescLeft">&#160;</td><td class="mdescRight">Message Types.  <a href="picocoap_8h.html#ac67fe50885918b21eee276d621605942">More...</a><br /></td></tr>
<tr class="separator:ac67fe50885918b21eee276d621605942"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31027c6fd66bb8b06b97b66f2f9d6379"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a31027c6fd66bb8b06b97b66f2f9d6379">pcoap_code</a></td></tr>
<tr class="memdesc:a31027c6fd66bb8b06b97b66f2f9d6379"><td class="mdescLeft">&#160;</td><td class="mdescRight">Message Codes.  <a href="picocoap_8h.html#a31027c6fd66bb8b06b97b66f2f9d6379">More...</a><br /></td></tr>
<tr class="separator:a31027c6fd66bb8b06b97b66f2f9d6379"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f942326a6148bdc0d352d2a8e6b1ff5"><td class="memItemLeft" align="right" valign="top">typedef enum <a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">pcoap_option_number</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a7f942326a6148bdc0d352d2a8e6b1ff5">pcoap_option_number</a></td></tr>
<tr class="memdesc:a7f942326a6148bdc0d352d2a8e6b1ff5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option Numbers.  <a href="picocoap_8h.html#a7f942326a6148bdc0d352d2a8e6b1ff5">More...</a><br /></td></tr>
<tr class="separator:a7f942326a6148bdc0d352d2a8e6b1ff5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e56e82f2f0b64143b3e9958b7cc3657"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structpcoap__pdu.html">pcoap_pdu</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a0e56e82f2f0b64143b3e9958b7cc3657">pcoap_pdu</a></td></tr>
<tr class="memdesc:a0e56e82f2f0b64143b3e9958b7cc3657"><td class="mdescLeft">&#160;</td><td class="mdescRight">Packet Data Unit.  <a href="picocoap_8h.html#a0e56e82f2f0b64143b3e9958b7cc3657">More...</a><br /></td></tr>
<tr class="separator:a0e56e82f2f0b64143b3e9958b7cc3657"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a771797fad8ad38810c587b5929c60bd2"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structpcoap__option.html">pcoap_option</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a771797fad8ad38810c587b5929c60bd2">pcoap_option</a></td></tr>
<tr class="memdesc:a771797fad8ad38810c587b5929c60bd2"><td class="mdescLeft">&#160;</td><td class="mdescRight">CoAP Option.  <a href="picocoap_8h.html#a771797fad8ad38810c587b5929c60bd2">More...</a><br /></td></tr>
<tr class="separator:a771797fad8ad38810c587b5929c60bd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affcc36a845fcf67c97a6b5cd176f36ca"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structpcoap__payload.html">pcoap_payload</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#affcc36a845fcf67c97a6b5cd176f36ca">pcoap_payload</a></td></tr>
<tr class="memdesc:affcc36a845fcf67c97a6b5cd176f36ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">CoAP Payload.  <a href="picocoap_8h.html#affcc36a845fcf67c97a6b5cd176f36ca">More...</a><br /></td></tr>
<tr class="separator:affcc36a845fcf67c97a6b5cd176f36ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:aa9dd43046c8daad008c9195a6f84d4f1"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1">coap_error</a> { <br />
&#160;&#160;<a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1ae11d26835a51a1cbe703cc64489abab4">CE_NONE</a> = 0, 
<a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1af4cdd83b8dd5a3c7fcffb2a996e4cd0b">CE_INVALID_PACKET</a>, 
<a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a1daf45d75909a7b9cfdb1efa172d6291">CE_BAD_VERSION</a>, 
<a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1adf21648dbb52ed121b4f00f090a770d7">CE_TOKEN_LENGTH_OUT_OF_RANGE</a>, 
<br />
&#160;&#160;<a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1af1cd5b6c54ad2ed5d173ad4073db0ce7">CE_UNKNOWN_CODE</a>, 
<a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a408d5d4b9b4f4fa0425e5daf363f33c6">CE_TOO_MANY_OPTIONS</a>, 
<a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a11eef067ac802f6435448d6bdb23a8c8">CE_OUT_OF_ORDER_OPTIONS_LIST</a>, 
<a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1adcd4f46e58a37c35d30bb2620d4db143">CE_INSUFFICIENT_BUFFER</a>, 
<br />
&#160;&#160;<a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a85f0155625c6c78f3a57f6f0d63c69b9">CE_FOUND_PAYLOAD_MARKER</a>, 
<a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1a0aaf352fa21e5f386c11aaa3271c5814">CE_END_OF_PACKET</a>
<br />
 }</td></tr>
<tr class="memdesc:aa9dd43046c8daad008c9195a6f84d4f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Status Codes.  <a href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1">More...</a><br /></td></tr>
<tr class="separator:aa9dd43046c8daad008c9195a6f84d4f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68aad811c8ab03701a2c3f1b84debe74"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74">coap_version</a> { <a class="el" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74a8d1ccd2774522702376faa2212156ebb">COAP_V1</a> = 1
 }</td></tr>
<tr class="memdesc:a68aad811c8ab03701a2c3f1b84debe74"><td class="mdescLeft">&#160;</td><td class="mdescRight">Protocol Versions.  <a href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74">More...</a><br /></td></tr>
<tr class="separator:a68aad811c8ab03701a2c3f1b84debe74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5022bbbae08abe01dc1e3363d01c9429"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429">coap_type</a> { <a class="el" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a5321c1999d967bdb0690c110ffd2d694">CT_CON</a> = 0, 
<a class="el" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a569079569cc030d7b3e8742fe4fb604c">CT_NON</a> = 1, 
<a class="el" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429ac05b4755c123dbfcdea069c30e00fbf2">CT_ACK</a> = 2, 
<a class="el" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429a6b19a4f509598ba63b9298406f8c33a9">CT_RST</a> = 3
 }</td></tr>
<tr class="memdesc:a5022bbbae08abe01dc1e3363d01c9429"><td class="mdescLeft">&#160;</td><td class="mdescRight">Message Types.  <a href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429">More...</a><br /></td></tr>
<tr class="separator:a5022bbbae08abe01dc1e3363d01c9429"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38d6e34ee134b30dc8e0ff2645bdefc8"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a> { <br />
&#160;&#160;<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a9258abcdb7967f26f72d5bf86f7d9f80">CC_EMPTY</a> = 0, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a1081e5a7863be0da7533b418088c372d">CC_GET</a> = 1, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a7e55c7951ace83c8ee1f8d14d481b80e">CC_POST</a> = 2, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ad0642d36276b52a1b0a267b9e081cef4">CC_PUT</a> = 3, 
<br />
&#160;&#160;<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ae04c43a96dcbd7b786b77114bcb4d3f1">CC_DELETE</a> = 4, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aa6aab3f3056cf09e44bc7a8b353b989c">CC_CREATED</a> = 65, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a5db69a5dae0a4df7e6d359bb711f4eb4">CC_DELETED</a> = 66, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aed4f016d99609daf64d6dbbe86462285">CC_VALID</a> = 67, 
<br />
&#160;&#160;<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ab75ed2f4de3fd8082fae6d762ecb8047">CC_CHANGED</a> = 68, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a5a3d8dfe96ed58ee297980aa825e3c31">CC_CONTENT</a> = 69, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a3a8a055a5144a03f36b975b2d538aeca">CC_CONTINUE</a> = 95, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a6990adba80ec99e44086bd7da700b3e0">CC_BAD_REQUEST</a> = 128, 
<br />
&#160;&#160;<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a8c47fe296dd2a3b9b4d448f01cb0dac8">CC_UNAUTHORIZED</a> = 129, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a4222ebc49140f8fa4961b421c07e70e9">CC_BAD_OPTION</a> = 130, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ab93c8cf2548e5a7e234f1239fc5abb21">CC_FORBIDDEN</a> = 131, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a45458afefee98fce1045ac286aa87281">CC_NOT_FOUND</a> = 132, 
<br />
&#160;&#160;<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aefdacb5576f290465d8db20ec254d181">CC_METHOD_NOT_ALLOWED</a> = 133, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8aa296b59cf098dad78d44a561bd32ae9e">CC_NOT_ACCEPTABLE</a> = 134, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a76b72396b70f26b9fba3ec17ee55bb0f">CC_REQUEST_ENTITY_INCOMPLETE</a> = 136, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a0abed60bac4e93dfff04bd07df958107">CC_PRECONDITION_FAILED</a> = 140, 
<br />
&#160;&#160;<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a9713f1516ec910b1e5023e7f743814d3">CC_REQUEST_ENTITY_TOO_LARGE</a> = 141, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a8844b1adff13138095852a8ebd24cd54">CC_UNSUPPORTED_CONTENT</a> = 143, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8abb3452820869a420cfa482d274b44aae">CC_INTERNAL_SERVER_ERROR</a> = 160, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a1bba826f081906a79b7b124d57ecaf10">CC_NOT_IMPLEMENTED</a> = 161, 
<br />
&#160;&#160;<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a2c5c68ef4745976c17454bac87527f05">CC_BAD_GATEWAY</a> = 162, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a6c51d61c5233b543567ee7589136bec3">CC_SERVICE_UNAVAILABLE</a> = 163, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8ac0b398812b69ce663e90c509957ca46f">CC_GATEWAY_TIMEOUT</a> = 164, 
<a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8a37f2e44f9612d8068df96b49c4484524">CC_PROXYING_NOT_SUPPORTED</a> = 165
<br />
 }</td></tr>
<tr class="memdesc:a38d6e34ee134b30dc8e0ff2645bdefc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Message Codes.  <a href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">More...</a><br /></td></tr>
<tr class="separator:a38d6e34ee134b30dc8e0ff2645bdefc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07242620cf4343b2a2b3b9e085c8bfc5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">pcoap_option_number</a> { <br />
&#160;&#160;<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a8ce05569f1014ebc8f1a284c3a9150ee">CON_IF_MATCH</a> = 1, 
<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a3184a5abcc31c579052eafaabdf76869">CON_URI_HOST</a> = 3, 
<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a0df0456e384384a6929f7a0d0fb3fc83">CON_ETAG</a> = 4, 
<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a44192b4f85f6d387e41b4c8ddec332ed">CON_IF_NONE_MATCH</a> = 5, 
<br />
&#160;&#160;<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5affbf7b8d14e175bde3238835a34b99a3">CON_OBSERVE</a> = 6, 
<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5ae0ad1427ffa0bcc1fa3f710a2aebdf1d">CON_URI_PORT</a> = 7, 
<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a9b38a519bd3f0a5a62d7f7ed1cf185d1">CON_LOCATION_PATH</a> = 8, 
<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5aac633e5706688eac61a7038a35567cca">CON_URI_PATH</a> = 11, 
<br />
&#160;&#160;<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5ad5b163ee5b8c1d98774c1839ab8fcbcc">CON_CONTENT_FORMAT</a> = 12, 
<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a90ffe25a2ae1f3a3e2a232819eac9614">CON_MAX_AGE</a> = 14, 
<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5aa83c3c85504c7346d8ce5f7ea2bc9ca9">CON_URI_QUERY</a> = 15, 
<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a6596c2a0bc92a19637f98ebfdcd10671">CON_ACCEPT</a> = 17, 
<br />
&#160;&#160;<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a6ce6458ac23fdf88a6690b12b883441e">CON_LOCATION_QUERY</a> = 20, 
<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a695d6858e9e775b1eb6fb67cf855d61d">CON_PROXY_URI</a> = 35, 
<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5aba42403bb9756bfcde04ae572e12d6a2">CON_PROXY_SCHEME</a> = 39, 
<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5adadc98d6fb84e39625cc6d75470b01fa">CON_SIZE1</a> = 60, 
<br />
&#160;&#160;<a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5a34caccb80453b6ce0f5e3bd58d4bad6c">CON_NO_RESPONSE</a> = 258
<br />
 }</td></tr>
<tr class="memdesc:a07242620cf4343b2a2b3b9e085c8bfc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Option Numbers.  <a href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">More...</a><br /></td></tr>
<tr class="separator:a07242620cf4343b2a2b3b9e085c8bfc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:acbfc392c98f18ba088cacabd5cc82ce0"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#acbfc392c98f18ba088cacabd5cc82ce0">pcoap_get_coap_offset</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu)</td></tr>
<tr class="memdesc:acbfc392c98f18ba088cacabd5cc82ce0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Finds the length of the CoAP header.  <a href="picocoap_8h.html#acbfc392c98f18ba088cacabd5cc82ce0">More...</a><br /></td></tr>
<tr class="separator:acbfc392c98f18ba088cacabd5cc82ce0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafb365b66f2b8cd7fc93b6b83dce56fa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#aafb365b66f2b8cd7fc93b6b83dce56fa">pcoap_validate_pkt</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu)</td></tr>
<tr class="memdesc:aafb365b66f2b8cd7fc93b6b83dce56fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Validate Packet.  <a href="picocoap_8h.html#aafb365b66f2b8cd7fc93b6b83dce56fa">More...</a><br /></td></tr>
<tr class="separator:aafb365b66f2b8cd7fc93b6b83dce56fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a04698973849a02609859e96af51f5022"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="picocoap_8h.html#aa85087040a9a41e7c24d8ae00f24e02b">pcoap_version</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a04698973849a02609859e96af51f5022">pcoap_get_version</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu)</td></tr>
<tr class="memdesc:a04698973849a02609859e96af51f5022"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Version.  <a href="picocoap_8h.html#a04698973849a02609859e96af51f5022">More...</a><br /></td></tr>
<tr class="separator:a04698973849a02609859e96af51f5022"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac32b7b090270841f3ab5c245c753cb13"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="picocoap_8h.html#ac67fe50885918b21eee276d621605942">pcoap_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#ac32b7b090270841f3ab5c245c753cb13">pcoap_get_type</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu)</td></tr>
<tr class="memdesc:ac32b7b090270841f3ab5c245c753cb13"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Message Type.  <a href="picocoap_8h.html#ac32b7b090270841f3ab5c245c753cb13">More...</a><br /></td></tr>
<tr class="separator:ac32b7b090270841f3ab5c245c753cb13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9dc61fe8a5039ec1c2f19e6fd7e7da7"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#ae9dc61fe8a5039ec1c2f19e6fd7e7da7">pcoap_get_tkl</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu)</td></tr>
<tr class="memdesc:ae9dc61fe8a5039ec1c2f19e6fd7e7da7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Token Length.  <a href="picocoap_8h.html#ae9dc61fe8a5039ec1c2f19e6fd7e7da7">More...</a><br /></td></tr>
<tr class="separator:ae9dc61fe8a5039ec1c2f19e6fd7e7da7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5dda5b5c0bb02888d3eaef8773da6c1c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a5dda5b5c0bb02888d3eaef8773da6c1c">pcoap_get_code</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu)</td></tr>
<tr class="memdesc:a5dda5b5c0bb02888d3eaef8773da6c1c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Message Code.  <a href="picocoap_8h.html#a5dda5b5c0bb02888d3eaef8773da6c1c">More...</a><br /></td></tr>
<tr class="separator:a5dda5b5c0bb02888d3eaef8773da6c1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0b9bf7d80521b5f7bf9de29546c5b72"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#ae0b9bf7d80521b5f7bf9de29546c5b72">pcoap_get_code_class</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu)</td></tr>
<tr class="memdesc:ae0b9bf7d80521b5f7bf9de29546c5b72"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Message Code Class.  <a href="picocoap_8h.html#ae0b9bf7d80521b5f7bf9de29546c5b72">More...</a><br /></td></tr>
<tr class="separator:ae0b9bf7d80521b5f7bf9de29546c5b72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ae1c5d83467bea1fd1a28de23281a10"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a0ae1c5d83467bea1fd1a28de23281a10">pcoap_get_code_detail</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu)</td></tr>
<tr class="memdesc:a0ae1c5d83467bea1fd1a28de23281a10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Message Code Detail.  <a href="picocoap_8h.html#a0ae1c5d83467bea1fd1a28de23281a10">More...</a><br /></td></tr>
<tr class="separator:a0ae1c5d83467bea1fd1a28de23281a10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68f14c9ac6fa344a5e74d2dd11da2fec"><td class="memItemLeft" align="right" valign="top">static uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a68f14c9ac6fa344a5e74d2dd11da2fec">pcoap_get_mid</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu)</td></tr>
<tr class="memdesc:a68f14c9ac6fa344a5e74d2dd11da2fec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Message ID.  <a href="picocoap_8h.html#a68f14c9ac6fa344a5e74d2dd11da2fec">More...</a><br /></td></tr>
<tr class="separator:a68f14c9ac6fa344a5e74d2dd11da2fec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d1aa7c8f685736b6f58cb09f40bdd3c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a9d1aa7c8f685736b6f58cb09f40bdd3c">pcoap_get_token</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, uint8_t *ptr)</td></tr>
<tr class="memdesc:a9d1aa7c8f685736b6f58cb09f40bdd3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Message Token.  <a href="picocoap_8h.html#a9d1aa7c8f685736b6f58cb09f40bdd3c">More...</a><br /></td></tr>
<tr class="separator:a9d1aa7c8f685736b6f58cb09f40bdd3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a859e8eba609867e6e2c0b6ff2a969d38"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structpcoap__option.html">pcoap_option</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a859e8eba609867e6e2c0b6ff2a969d38">pcoap_get_option</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, <a class="el" href="structpcoap__option.html">pcoap_option</a> *last)</td></tr>
<tr class="memdesc:a859e8eba609867e6e2c0b6ff2a969d38"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Option.  <a href="picocoap_8h.html#a859e8eba609867e6e2c0b6ff2a969d38">More...</a><br /></td></tr>
<tr class="separator:a859e8eba609867e6e2c0b6ff2a969d38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28b0035cf1fab512f4a990059e78501b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structpcoap__option.html">pcoap_option</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a28b0035cf1fab512f4a990059e78501b">pcoap_get_option_by_num</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, <a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">pcoap_option_number</a> num, uint8_t occ)</td></tr>
<tr class="memdesc:a28b0035cf1fab512f4a990059e78501b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Option by Option Number.  <a href="picocoap_8h.html#a28b0035cf1fab512f4a990059e78501b">More...</a><br /></td></tr>
<tr class="separator:a28b0035cf1fab512f4a990059e78501b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af576d82c1b5c6b38db85c4b38691fc87"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structpcoap__payload.html">pcoap_payload</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#af576d82c1b5c6b38db85c4b38691fc87">pcoap_get_payload</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu)</td></tr>
<tr class="memdesc:af576d82c1b5c6b38db85c4b38691fc87"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get Option.  <a href="picocoap_8h.html#af576d82c1b5c6b38db85c4b38691fc87">More...</a><br /></td></tr>
<tr class="separator:af576d82c1b5c6b38db85c4b38691fc87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8aad0dae8087fa65cd0f77951ccf6fe0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a8aad0dae8087fa65cd0f77951ccf6fe0">pcoap_decode_option</a> (uint8_t *pkt_ptr, size_t pkt_len, uint16_t *option_number, size_t *option_length, uint8_t **value)</td></tr>
<tr class="memdesc:a8aad0dae8087fa65cd0f77951ccf6fe0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal Method.  <a href="picocoap_8h.html#a8aad0dae8087fa65cd0f77951ccf6fe0">More...</a><br /></td></tr>
<tr class="separator:a8aad0dae8087fa65cd0f77951ccf6fe0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a498bfe6e2730cb5018c43e1c84ece8b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a498bfe6e2730cb5018c43e1c84ece8b8">pcoap_init_pdu</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu)</td></tr>
<tr class="memdesc:a498bfe6e2730cb5018c43e1c84ece8b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize Packet.  <a href="picocoap_8h.html#a498bfe6e2730cb5018c43e1c84ece8b8">More...</a><br /></td></tr>
<tr class="separator:a498bfe6e2730cb5018c43e1c84ece8b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e568b4f75937495e103d3e0c4a562e2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a3e568b4f75937495e103d3e0c4a562e2">pcoap_set_version</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, <a class="el" href="picocoap_8h.html#aa85087040a9a41e7c24d8ae00f24e02b">pcoap_version</a> ver)</td></tr>
<tr class="memdesc:a3e568b4f75937495e103d3e0c4a562e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Version.  <a href="picocoap_8h.html#a3e568b4f75937495e103d3e0c4a562e2">More...</a><br /></td></tr>
<tr class="separator:a3e568b4f75937495e103d3e0c4a562e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cd830e991279e45ed6bba30f66ff5fe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a6cd830e991279e45ed6bba30f66ff5fe">pcoap_set_type</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, <a class="el" href="picocoap_8h.html#ac67fe50885918b21eee276d621605942">pcoap_type</a> mtype)</td></tr>
<tr class="memdesc:a6cd830e991279e45ed6bba30f66ff5fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Message Type.  <a href="picocoap_8h.html#a6cd830e991279e45ed6bba30f66ff5fe">More...</a><br /></td></tr>
<tr class="separator:a6cd830e991279e45ed6bba30f66ff5fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97706747324f6ab07b054ced91de43a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a97706747324f6ab07b054ced91de43a5">pcoap_set_code</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, <a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a> code)</td></tr>
<tr class="memdesc:a97706747324f6ab07b054ced91de43a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Message Code.  <a href="picocoap_8h.html#a97706747324f6ab07b054ced91de43a5">More...</a><br /></td></tr>
<tr class="separator:a97706747324f6ab07b054ced91de43a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b2807c0af83004f3144d8b295fec647"><td class="memItemLeft" align="right" valign="top"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a8b2807c0af83004f3144d8b295fec647">pcoap_set_mid</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, uint16_t mid)</td></tr>
<tr class="memdesc:a8b2807c0af83004f3144d8b295fec647"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Message ID.  <a href="picocoap_8h.html#a8b2807c0af83004f3144d8b295fec647">More...</a><br /></td></tr>
<tr class="separator:a8b2807c0af83004f3144d8b295fec647"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b9a5b44c21a9764790c1a7f3168f5bc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a5b9a5b44c21a9764790c1a7f3168f5bc">pcoap_set_token</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, uint8_t *token, uint8_t tkl)</td></tr>
<tr class="memdesc:a5b9a5b44c21a9764790c1a7f3168f5bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set Message Token.  <a href="picocoap_8h.html#a5b9a5b44c21a9764790c1a7f3168f5bc">More...</a><br /></td></tr>
<tr class="separator:a5b9a5b44c21a9764790c1a7f3168f5bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a539c085f5cd8660309b9248fe2224c9c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a539c085f5cd8660309b9248fe2224c9c">pcoap_add_option</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, int32_t opt_num, uint8_t *value, uint16_t opt_len)</td></tr>
<tr class="memdesc:a539c085f5cd8660309b9248fe2224c9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add Message Option.  <a href="picocoap_8h.html#a539c085f5cd8660309b9248fe2224c9c">More...</a><br /></td></tr>
<tr class="separator:a539c085f5cd8660309b9248fe2224c9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a314a687de17c9e5c0325e2842d4899dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a314a687de17c9e5c0325e2842d4899dc">pcoap_set_payload</a> (<a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *pdu, uint8_t *payload, size_t payload_len)</td></tr>
<tr class="memdesc:a314a687de17c9e5c0325e2842d4899dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add Message Option.  <a href="picocoap_8h.html#a314a687de17c9e5c0325e2842d4899dc">More...</a><br /></td></tr>
<tr class="separator:a314a687de17c9e5c0325e2842d4899dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48a9e2b97de2c3cdd2f1d6c0b3cfefeb"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a48a9e2b97de2c3cdd2f1d6c0b3cfefeb">pcoap_build_code</a> (uint8_t _class, uint8_t detail)</td></tr>
<tr class="memdesc:a48a9e2b97de2c3cdd2f1d6c0b3cfefeb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Build Message Code from Class and Detail.  <a href="picocoap_8h.html#a48a9e2b97de2c3cdd2f1d6c0b3cfefeb">More...</a><br /></td></tr>
<tr class="separator:a48a9e2b97de2c3cdd2f1d6c0b3cfefeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e9f0127122915fe5da80363b1b802bc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a0e9f0127122915fe5da80363b1b802bc">pcoap_adjust_option_deltas</a> (uint8_t *opts, size_t *opts_len, size_t max_len, int32_t offset)</td></tr>
<tr class="memdesc:a0e9f0127122915fe5da80363b1b802bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal Method.  <a href="picocoap_8h.html#a0e9f0127122915fe5da80363b1b802bc">More...</a><br /></td></tr>
<tr class="separator:a0e9f0127122915fe5da80363b1b802bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ed0e923c8bde1711a858f6a95d6211d"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a6ed0e923c8bde1711a858f6a95d6211d">pcoap_build_option_header</a> (uint8_t *buf, size_t max_len, int32_t opt_delta, int32_t opt_len)</td></tr>
<tr class="memdesc:a6ed0e923c8bde1711a858f6a95d6211d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal Method.  <a href="picocoap_8h.html#a6ed0e923c8bde1711a858f6a95d6211d">More...</a><br /></td></tr>
<tr class="separator:a6ed0e923c8bde1711a858f6a95d6211d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae623c60b0b9c8e994b3fd7687eee0147"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#ae623c60b0b9c8e994b3fd7687eee0147">pcoap_compute_option_header_len</a> (int32_t opt_delta, int32_t opt_len)</td></tr>
<tr class="memdesc:ae623c60b0b9c8e994b3fd7687eee0147"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal Method.  <a href="picocoap_8h.html#ae623c60b0b9c8e994b3fd7687eee0147">More...</a><br /></td></tr>
<tr class="separator:ae623c60b0b9c8e994b3fd7687eee0147"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a18cfdd40118563c137b6b911332dde6e"><td class="memItemLeft" align="right" valign="top">static struct <a class="el" href="structpcoap__option__names.html">pcoap_option_names</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="picocoap_8h.html#a18cfdd40118563c137b6b911332dde6e">coap_options</a> [<a class="el" href="picocoap_8h.html#a32c693bd3dc87d85f8256028e9f0e0bf">COAP_OPTIONS_LENGTH</a>]</td></tr>
<tr class="separator:a18cfdd40118563c137b6b911332dde6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a343c27d1c7ad3346aec70646caa341a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a343c27d1c7ad3346aec70646caa341a0">&#9670;&nbsp;</a></span>COAP_ACK_RANDOM_FACTOR</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_ACK_RANDOM_FACTOR&#160;&#160;&#160;1.5</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a42e24df1551401726ed936baddb2a2ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42e24df1551401726ed936baddb2a2ec">&#9670;&nbsp;</a></span>COAP_ACK_TIMEOUT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_ACK_TIMEOUT&#160;&#160;&#160;2</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CoAP Defined Parameters. </p>

</div>
</div>
<a id="ac74e78ce8eb169a24787638b4c2074d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac74e78ce8eb169a24787638b4c2074d7">&#9670;&nbsp;</a></span>COAP_DEFAULT_LEISURE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_DEFAULT_LEISURE&#160;&#160;&#160;5</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a25528ec74a52f6c3c1c90298e797cae4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25528ec74a52f6c3c1c90298e797cae4">&#9670;&nbsp;</a></span>COAP_EXCHANGE_LIFETIME</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_EXCHANGE_LIFETIME&#160;&#160;&#160;247</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="adc147063d422cfed3703e74cd222caef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc147063d422cfed3703e74cd222caef">&#9670;&nbsp;</a></span>COAP_MAX_LATENCY</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_MAX_LATENCY&#160;&#160;&#160;100</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ab099eef660b4c5b038b4b87239a82c35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab099eef660b4c5b038b4b87239a82c35">&#9670;&nbsp;</a></span>COAP_MAX_RETRANSMIT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_MAX_RETRANSMIT&#160;&#160;&#160;4</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a0621265cdaf30c81a9ef53ecb9f51e56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0621265cdaf30c81a9ef53ecb9f51e56">&#9670;&nbsp;</a></span>COAP_MAX_RTT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_MAX_RTT&#160;&#160;&#160;202</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a9e0313ab0ba8fd48729bd8d77cc34ae3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e0313ab0ba8fd48729bd8d77cc34ae3">&#9670;&nbsp;</a></span>COAP_MAX_TRANSMIT_SPAN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_MAX_TRANSMIT_SPAN&#160;&#160;&#160;45</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ad2acd5582df0fb73b3b823b2fa5b157b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2acd5582df0fb73b3b823b2fa5b157b">&#9670;&nbsp;</a></span>COAP_MAX_TRANSMIT_WAIT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_MAX_TRANSMIT_WAIT&#160;&#160;&#160;93</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a87fd7d7dd618371cbc930e30bf1c27d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87fd7d7dd618371cbc930e30bf1c27d9">&#9670;&nbsp;</a></span>COAP_NON_LIFETIME</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_NON_LIFETIME&#160;&#160;&#160;145</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a5733f3616dbb5ae758b062296da6f843"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5733f3616dbb5ae758b062296da6f843">&#9670;&nbsp;</a></span>COAP_NSTART</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_NSTART&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a32c693bd3dc87d85f8256028e9f0e0bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32c693bd3dc87d85f8256028e9f0e0bf">&#9670;&nbsp;</a></span>COAP_OPTIONS_LENGTH</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_OPTIONS_LENGTH&#160;&#160;&#160;16</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2ed23e020e732dda3a360191f231da7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ed23e020e732dda3a360191f231da7b">&#9670;&nbsp;</a></span>COAP_PROBING_RATE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_PROBING_RATE&#160;&#160;&#160;1</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a44facf47657ac3f4d1075ca9f51ba24b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44facf47657ac3f4d1075ca9f51ba24b">&#9670;&nbsp;</a></span>COAP_PROCESSING_DELAY</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define COAP_PROCESSING_DELAY&#160;&#160;&#160;2</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="a31027c6fd66bb8b06b97b66f2f9d6379"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31027c6fd66bb8b06b97b66f2f9d6379">&#9670;&nbsp;</a></span>pcoap_code</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a> <a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Message Codes. </p>
<p>All known message request/response codes. </p>

</div>
</div>
<a id="a4ae82558a4b549c2ae73f851df0d6cb2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ae82558a4b549c2ae73f851df0d6cb2">&#9670;&nbsp;</a></span>pcoap_error</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1">coap_error</a> <a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Status Codes. </p>
<p>These codes represent the possible errors that functions in this library can return. </p>

</div>
</div>
<a id="a771797fad8ad38810c587b5929c60bd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a771797fad8ad38810c587b5929c60bd2">&#9670;&nbsp;</a></span>pcoap_option</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structpcoap__option.html">pcoap_option</a> <a class="el" href="structpcoap__option.html">pcoap_option</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CoAP Option. </p>
<p>One option in a CoAP message. </p>

</div>
</div>
<a id="a7f942326a6148bdc0d352d2a8e6b1ff5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f942326a6148bdc0d352d2a8e6b1ff5">&#9670;&nbsp;</a></span>pcoap_option_number</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">pcoap_option_number</a> <a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">pcoap_option_number</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Option Numbers. </p>
<p>All known option numbers. </p>

</div>
</div>
<a id="affcc36a845fcf67c97a6b5cd176f36ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#affcc36a845fcf67c97a6b5cd176f36ca">&#9670;&nbsp;</a></span>pcoap_payload</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structpcoap__payload.html">pcoap_payload</a> <a class="el" href="structpcoap__payload.html">pcoap_payload</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>CoAP Payload. </p>
<p>Payload container. </p>

</div>
</div>
<a id="a0e56e82f2f0b64143b3e9958b7cc3657"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e56e82f2f0b64143b3e9958b7cc3657">&#9670;&nbsp;</a></span>pcoap_pdu</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> <a class="el" href="structpcoap__pdu.html">pcoap_pdu</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Packet Data Unit. </p>
<p>This contains all information about the message buffer. </p>

</div>
</div>
<a id="ac67fe50885918b21eee276d621605942"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac67fe50885918b21eee276d621605942">&#9670;&nbsp;</a></span>pcoap_type</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429">coap_type</a> <a class="el" href="picocoap_8h.html#ac67fe50885918b21eee276d621605942">pcoap_type</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Message Types. </p>
<p>The four types of messages possible. </p>

</div>
</div>
<a id="aa85087040a9a41e7c24d8ae00f24e02b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa85087040a9a41e7c24d8ae00f24e02b">&#9670;&nbsp;</a></span>pcoap_version</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef enum <a class="el" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74">coap_version</a> <a class="el" href="picocoap_8h.html#aa85087040a9a41e7c24d8ae00f24e02b">pcoap_version</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Protocol Versions. </p>
<p>All known version of the protocol. </p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="aa9dd43046c8daad008c9195a6f84d4f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9dd43046c8daad008c9195a6f84d4f1">&#9670;&nbsp;</a></span>coap_error</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1">coap_error</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Status Codes. </p>
<p>These codes represent the possible errors that functions in this library can return. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="aa9dd43046c8daad008c9195a6f84d4f1ae11d26835a51a1cbe703cc64489abab4"></a>CE_NONE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aa9dd43046c8daad008c9195a6f84d4f1af4cdd83b8dd5a3c7fcffb2a996e4cd0b"></a>CE_INVALID_PACKET&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aa9dd43046c8daad008c9195a6f84d4f1a1daf45d75909a7b9cfdb1efa172d6291"></a>CE_BAD_VERSION&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aa9dd43046c8daad008c9195a6f84d4f1adf21648dbb52ed121b4f00f090a770d7"></a>CE_TOKEN_LENGTH_OUT_OF_RANGE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aa9dd43046c8daad008c9195a6f84d4f1af1cd5b6c54ad2ed5d173ad4073db0ce7"></a>CE_UNKNOWN_CODE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aa9dd43046c8daad008c9195a6f84d4f1a408d5d4b9b4f4fa0425e5daf363f33c6"></a>CE_TOO_MANY_OPTIONS&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aa9dd43046c8daad008c9195a6f84d4f1a11eef067ac802f6435448d6bdb23a8c8"></a>CE_OUT_OF_ORDER_OPTIONS_LIST&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aa9dd43046c8daad008c9195a6f84d4f1adcd4f46e58a37c35d30bb2620d4db143"></a>CE_INSUFFICIENT_BUFFER&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aa9dd43046c8daad008c9195a6f84d4f1a85f0155625c6c78f3a57f6f0d63c69b9"></a>CE_FOUND_PAYLOAD_MARKER&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="aa9dd43046c8daad008c9195a6f84d4f1a0aaf352fa21e5f386c11aaa3271c5814"></a>CE_END_OF_PACKET&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<a id="a5022bbbae08abe01dc1e3363d01c9429"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5022bbbae08abe01dc1e3363d01c9429">&#9670;&nbsp;</a></span>coap_type</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429">coap_type</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Message Types. </p>
<p>The four types of messages possible. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a5022bbbae08abe01dc1e3363d01c9429a5321c1999d967bdb0690c110ffd2d694"></a>CT_CON&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a5022bbbae08abe01dc1e3363d01c9429a569079569cc030d7b3e8742fe4fb604c"></a>CT_NON&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a5022bbbae08abe01dc1e3363d01c9429ac05b4755c123dbfcdea069c30e00fbf2"></a>CT_ACK&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a5022bbbae08abe01dc1e3363d01c9429a6b19a4f509598ba63b9298406f8c33a9"></a>CT_RST&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<a id="a68aad811c8ab03701a2c3f1b84debe74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68aad811c8ab03701a2c3f1b84debe74">&#9670;&nbsp;</a></span>coap_version</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74">coap_version</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Protocol Versions. </p>
<p>All known version of the protocol. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a68aad811c8ab03701a2c3f1b84debe74a8d1ccd2774522702376faa2212156ebb"></a>COAP_V1&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<a id="a38d6e34ee134b30dc8e0ff2645bdefc8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38d6e34ee134b30dc8e0ff2645bdefc8">&#9670;&nbsp;</a></span>pcoap_code</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Message Codes. </p>
<p>All known message request/response codes. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a9258abcdb7967f26f72d5bf86f7d9f80"></a>CC_EMPTY&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a1081e5a7863be0da7533b418088c372d"></a>CC_GET&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a7e55c7951ace83c8ee1f8d14d481b80e"></a>CC_POST&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8ad0642d36276b52a1b0a267b9e081cef4"></a>CC_PUT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8ae04c43a96dcbd7b786b77114bcb4d3f1"></a>CC_DELETE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8aa6aab3f3056cf09e44bc7a8b353b989c"></a>CC_CREATED&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a5db69a5dae0a4df7e6d359bb711f4eb4"></a>CC_DELETED&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8aed4f016d99609daf64d6dbbe86462285"></a>CC_VALID&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8ab75ed2f4de3fd8082fae6d762ecb8047"></a>CC_CHANGED&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a5a3d8dfe96ed58ee297980aa825e3c31"></a>CC_CONTENT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a3a8a055a5144a03f36b975b2d538aeca"></a>CC_CONTINUE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a6990adba80ec99e44086bd7da700b3e0"></a>CC_BAD_REQUEST&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a8c47fe296dd2a3b9b4d448f01cb0dac8"></a>CC_UNAUTHORIZED&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a4222ebc49140f8fa4961b421c07e70e9"></a>CC_BAD_OPTION&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8ab93c8cf2548e5a7e234f1239fc5abb21"></a>CC_FORBIDDEN&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a45458afefee98fce1045ac286aa87281"></a>CC_NOT_FOUND&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8aefdacb5576f290465d8db20ec254d181"></a>CC_METHOD_NOT_ALLOWED&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8aa296b59cf098dad78d44a561bd32ae9e"></a>CC_NOT_ACCEPTABLE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a76b72396b70f26b9fba3ec17ee55bb0f"></a>CC_REQUEST_ENTITY_INCOMPLETE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a0abed60bac4e93dfff04bd07df958107"></a>CC_PRECONDITION_FAILED&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a9713f1516ec910b1e5023e7f743814d3"></a>CC_REQUEST_ENTITY_TOO_LARGE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a8844b1adff13138095852a8ebd24cd54"></a>CC_UNSUPPORTED_CONTENT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8abb3452820869a420cfa482d274b44aae"></a>CC_INTERNAL_SERVER_ERROR&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a1bba826f081906a79b7b124d57ecaf10"></a>CC_NOT_IMPLEMENTED&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a2c5c68ef4745976c17454bac87527f05"></a>CC_BAD_GATEWAY&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a6c51d61c5233b543567ee7589136bec3"></a>CC_SERVICE_UNAVAILABLE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8ac0b398812b69ce663e90c509957ca46f"></a>CC_GATEWAY_TIMEOUT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a38d6e34ee134b30dc8e0ff2645bdefc8a37f2e44f9612d8068df96b49c4484524"></a>CC_PROXYING_NOT_SUPPORTED&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<a id="a07242620cf4343b2a2b3b9e085c8bfc5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07242620cf4343b2a2b3b9e085c8bfc5">&#9670;&nbsp;</a></span>pcoap_option_number</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">pcoap_option_number</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Option Numbers. </p>
<p>All known option numbers. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5a8ce05569f1014ebc8f1a284c3a9150ee"></a>CON_IF_MATCH&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5a3184a5abcc31c579052eafaabdf76869"></a>CON_URI_HOST&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5a0df0456e384384a6929f7a0d0fb3fc83"></a>CON_ETAG&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5a44192b4f85f6d387e41b4c8ddec332ed"></a>CON_IF_NONE_MATCH&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5affbf7b8d14e175bde3238835a34b99a3"></a>CON_OBSERVE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5ae0ad1427ffa0bcc1fa3f710a2aebdf1d"></a>CON_URI_PORT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5a9b38a519bd3f0a5a62d7f7ed1cf185d1"></a>CON_LOCATION_PATH&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5aac633e5706688eac61a7038a35567cca"></a>CON_URI_PATH&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5ad5b163ee5b8c1d98774c1839ab8fcbcc"></a>CON_CONTENT_FORMAT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5a90ffe25a2ae1f3a3e2a232819eac9614"></a>CON_MAX_AGE&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5aa83c3c85504c7346d8ce5f7ea2bc9ca9"></a>CON_URI_QUERY&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5a6596c2a0bc92a19637f98ebfdcd10671"></a>CON_ACCEPT&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5a6ce6458ac23fdf88a6690b12b883441e"></a>CON_LOCATION_QUERY&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5a695d6858e9e775b1eb6fb67cf855d61d"></a>CON_PROXY_URI&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5aba42403bb9756bfcde04ae572e12d6a2"></a>CON_PROXY_SCHEME&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5adadc98d6fb84e39625cc6d75470b01fa"></a>CON_SIZE1&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a07242620cf4343b2a2b3b9e085c8bfc5a34caccb80453b6ce0f5e3bd58d4bad6c"></a>CON_NO_RESPONSE&#160;</td><td class="fielddoc"></td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a539c085f5cd8660309b9248fe2224c9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a539c085f5cd8660309b9248fe2224c9c">&#9670;&nbsp;</a></span>pcoap_add_option()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> pcoap_add_option </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>opt_num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>opt_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add Message Option. </p>
<p>Adds an option to the existing message. Options SHOULD be added in order of option number. In the case of multiple options of the same type, they are sorted in the order that they are added. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">opt</td><td>option container. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>coap_error (0 == no error) </dd></dl>

</div>
</div>
<a id="a0e9f0127122915fe5da80363b1b802bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e9f0127122915fe5da80363b1b802bc">&#9670;&nbsp;</a></span>pcoap_adjust_option_deltas()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> pcoap_adjust_option_deltas </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>opts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t *&#160;</td>
          <td class="paramname"><em>opts_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>max_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Internal Method. </p>

</div>
</div>
<a id="a48a9e2b97de2c3cdd2f1d6c0b3cfefeb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48a9e2b97de2c3cdd2f1d6c0b3cfefeb">&#9670;&nbsp;</a></span>pcoap_build_code()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint8_t pcoap_build_code </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>_class</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>detail</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Build Message Code from Class and Detail. </p>
<p>Gets the class portion of the message code. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">class</td><td>the code class. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">detail</td><td>the code detail. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>coap_get_code </dd></dl>

</div>
</div>
<a id="a6ed0e923c8bde1711a858f6a95d6211d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ed0e923c8bde1711a858f6a95d6211d">&#9670;&nbsp;</a></span>pcoap_build_option_header()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int8_t pcoap_build_option_header </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>max_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>opt_delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>opt_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Internal Method. </p>

</div>
</div>
<a id="ae623c60b0b9c8e994b3fd7687eee0147"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae623c60b0b9c8e994b3fd7687eee0147">&#9670;&nbsp;</a></span>pcoap_compute_option_header_len()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int8_t pcoap_compute_option_header_len </td>
          <td>(</td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>opt_delta</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32_t&#160;</td>
          <td class="paramname"><em>opt_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Internal Method. </p>

</div>
</div>
<a id="a8aad0dae8087fa65cd0f77951ccf6fe0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8aad0dae8087fa65cd0f77951ccf6fe0">&#9670;&nbsp;</a></span>pcoap_decode_option()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> pcoap_decode_option </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>pkt_ptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>pkt_len</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>option_number</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t *&#160;</td>
          <td class="paramname"><em>option_length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t **&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Internal Method. </p>

</div>
</div>
<a id="acbfc392c98f18ba088cacabd5cc82ce0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbfc392c98f18ba088cacabd5cc82ce0">&#9670;&nbsp;</a></span>pcoap_get_coap_offset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t pcoap_get_coap_offset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Finds the length of the CoAP header. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pdu</td><td>the CoAP pdu, containing the header and payload</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the length of the CoAP header </dd></dl>

</div>
</div>
<a id="a5dda5b5c0bb02888d3eaef8773da6c1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5dda5b5c0bb02888d3eaef8773da6c1c">&#9670;&nbsp;</a></span>pcoap_get_code()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a> pcoap_get_code </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get Message Code. </p>
<p>Extracts the message code from the given message. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>code. </dd></dl>
<dl class="section see"><dt>See also</dt><dd>coap_code </dd></dl>

</div>
</div>
<a id="ae0b9bf7d80521b5f7bf9de29546c5b72"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0b9bf7d80521b5f7bf9de29546c5b72">&#9670;&nbsp;</a></span>pcoap_get_code_class()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint8_t pcoap_get_code_class </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get Message Code Class. </p>
<p>Gets the class portion of the message code. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>coap_get_code </dd></dl>

</div>
</div>
<a id="a0ae1c5d83467bea1fd1a28de23281a10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ae1c5d83467bea1fd1a28de23281a10">&#9670;&nbsp;</a></span>pcoap_get_code_detail()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint8_t pcoap_get_code_detail </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get Message Code Detail. </p>
<p>Gets the detail portion of the message code. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd>coap_get_code </dd></dl>

</div>
</div>
<a id="a68f14c9ac6fa344a5e74d2dd11da2fec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68f14c9ac6fa344a5e74d2dd11da2fec">&#9670;&nbsp;</a></span>pcoap_get_mid()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint16_t pcoap_get_mid </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get Message ID. </p>
<p>Extracts the message ID from the given message. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>mid. </dd></dl>

</div>
</div>
<a id="a859e8eba609867e6e2c0b6ff2a969d38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a859e8eba609867e6e2c0b6ff2a969d38">&#9670;&nbsp;</a></span>pcoap_get_option()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structpcoap__option.html">pcoap_option</a> pcoap_get_option </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structpcoap__option.html">pcoap_option</a> *&#160;</td>
          <td class="paramname"><em>last</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Option. </p>
<p>Iterates over the options in the given message. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pointer</td><td>to the last/next option, pass 0 for the first option. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>coap_option </dd></dl>

</div>
</div>
<a id="a28b0035cf1fab512f4a990059e78501b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28b0035cf1fab512f4a990059e78501b">&#9670;&nbsp;</a></span>pcoap_get_option_by_num()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structpcoap__option.html">pcoap_option</a> pcoap_get_option_by_num </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="picocoap_8h.html#a07242620cf4343b2a2b3b9e085c8bfc5">pcoap_option_number</a>&#160;</td>
          <td class="paramname"><em>num</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>occ</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Option by Option Number. </p>
<p>Gets a single specified by the option number and index of which occurrence of that option number you'd like. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>option number to get. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">occ</td><td>occurrence of to get (0th, 1st, 2nd, etc) 0 for the first option. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>coap_option </dd></dl>

</div>
</div>
<a id="af576d82c1b5c6b38db85c4b38691fc87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af576d82c1b5c6b38db85c4b38691fc87">&#9670;&nbsp;</a></span>pcoap_get_payload()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structpcoap__payload.html">pcoap_payload</a> pcoap_get_payload </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Option. </p>
<p>Extracts the option with the given index in the given message. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>coap_payload </dd></dl>

</div>
</div>
<a id="ae9dc61fe8a5039ec1c2f19e6fd7e7da7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9dc61fe8a5039ec1c2f19e6fd7e7da7">&#9670;&nbsp;</a></span>pcoap_get_tkl()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint8_t pcoap_get_tkl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get Token Length. </p>
<p>Extracts the token length from the given message. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>length. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429" title="Message Types.">coap_type</a> </dd></dl>

</div>
</div>
<a id="a9d1aa7c8f685736b6f58cb09f40bdd3c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d1aa7c8f685736b6f58cb09f40bdd3c">&#9670;&nbsp;</a></span>pcoap_get_token()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t pcoap_get_token </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>ptr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get Message Token. </p>
<p>Extracts the token from the given message. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>token. </dd></dl>

</div>
</div>
<a id="ac32b7b090270841f3ab5c245c753cb13"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac32b7b090270841f3ab5c245c753cb13">&#9670;&nbsp;</a></span>pcoap_get_type()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="picocoap_8h.html#ac67fe50885918b21eee276d621605942">pcoap_type</a> pcoap_get_type </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get Message Type. </p>
<p>Extracts the message type from the given message. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>type. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429" title="Message Types.">coap_type</a> </dd></dl>

</div>
</div>
<a id="a04698973849a02609859e96af51f5022"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04698973849a02609859e96af51f5022">&#9670;&nbsp;</a></span>pcoap_get_version()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="picocoap_8h.html#aa85087040a9a41e7c24d8ae00f24e02b">pcoap_version</a> pcoap_get_version </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get Version. </p>
<p>Extracts the CoAP version from the given message. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>version. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74" title="Protocol Versions.">coap_version</a> </dd></dl>

</div>
</div>
<a id="a498bfe6e2730cb5018c43e1c84ece8b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a498bfe6e2730cb5018c43e1c84ece8b8">&#9670;&nbsp;</a></span>pcoap_init_pdu()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> pcoap_init_pdu </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize Packet. </p>
<p>Initializes on an empty buffer for creating new CoAP packets. This function (or coap_validate for parsing packets) must be called and must return CE_NONE before you can use any of the getters or setter. The packet is initialized to a CoAP Ping. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>coap_error (0 == no error) </dd></dl>

</div>
</div>
<a id="a97706747324f6ab07b054ced91de43a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97706747324f6ab07b054ced91de43a5">&#9670;&nbsp;</a></span>pcoap_set_code()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> pcoap_set_code </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="picocoap_8h.html#a38d6e34ee134b30dc8e0ff2645bdefc8">pcoap_code</a>&#160;</td>
          <td class="paramname"><em>code</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Message Code. </p>
<p>Sets the message type header field. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">code</td><td>code to set. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>coap_error (0 == no error) </dd></dl>
<dl class="section see"><dt>See also</dt><dd>coap_code </dd></dl>

</div>
</div>
<a id="a8b2807c0af83004f3144d8b295fec647"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b2807c0af83004f3144d8b295fec647">&#9670;&nbsp;</a></span>pcoap_set_mid()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> pcoap_set_mid </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>mid</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Message ID. </p>
<p>Sets the message ID header field. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mid</td><td>message ID to set. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>coap_error (0 == no error) </dd></dl>

</div>
</div>
<a id="a314a687de17c9e5c0325e2842d4899dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a314a687de17c9e5c0325e2842d4899dc">&#9670;&nbsp;</a></span>pcoap_set_payload()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> pcoap_set_payload </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>payload</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>payload_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add Message Option. </p>
<p>Sets the payload of the given message to the value in <code>payload</code>. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">pl</td><td>payload container. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>coap_error (0 == no error) </dd></dl>

</div>
</div>
<a id="a5b9a5b44c21a9764790c1a7f3168f5bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b9a5b44c21a9764790c1a7f3168f5bc">&#9670;&nbsp;</a></span>pcoap_set_token()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> pcoap_set_token </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>token</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>tkl</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Message Token. </p>
<p>Sets the message token header field. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">token</td><td>pointer to the token array to set. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>coap_error (0 == no error) </dd></dl>

</div>
</div>
<a id="a6cd830e991279e45ed6bba30f66ff5fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cd830e991279e45ed6bba30f66ff5fe">&#9670;&nbsp;</a></span>pcoap_set_type()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> pcoap_set_type </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="picocoap_8h.html#ac67fe50885918b21eee276d621605942">pcoap_type</a>&#160;</td>
          <td class="paramname"><em>mtype</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Message Type. </p>
<p>Sets the message type header field. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">mtype</td><td>type to set. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>coap_error (0 == no error) </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="picocoap_8h.html#a5022bbbae08abe01dc1e3363d01c9429" title="Message Types.">coap_type</a> </dd></dl>

</div>
</div>
<a id="a3e568b4f75937495e103d3e0c4a562e2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e568b4f75937495e103d3e0c4a562e2">&#9670;&nbsp;</a></span>pcoap_set_version()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> pcoap_set_version </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="picocoap_8h.html#aa85087040a9a41e7c24d8ae00f24e02b">pcoap_version</a>&#160;</td>
          <td class="paramname"><em>ver</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set Version. </p>
<p>Sets the version number header field. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">ver</td><td>version to set. Must be COAP_V1. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>coap_error (0 == no error) </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="picocoap_8h.html#a68aad811c8ab03701a2c3f1b84debe74" title="Protocol Versions.">coap_version</a> </dd></dl>

</div>
</div>
<a id="aafb365b66f2b8cd7fc93b6b83dce56fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafb365b66f2b8cd7fc93b6b83dce56fa">&#9670;&nbsp;</a></span>pcoap_validate_pkt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="picocoap_8h.html#a4ae82558a4b549c2ae73f851df0d6cb2">pcoap_error</a> pcoap_validate_pkt </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structpcoap__pdu.html">pcoap_pdu</a> *&#160;</td>
          <td class="paramname"><em>pdu</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Validate Packet. </p>
<p>Parses the given packet to check if it is a valid CoAP message. This function (or coap_init_pdu for creating new packets) must be called and must return CE_NONE before you can use any of the getters or setter. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">pdu</td><td>pointer to the coap message struct. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>error code (CE_NONE == 0 == no error). </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="picocoap_8h.html#aa9dd43046c8daad008c9195a6f84d4f1" title="Status Codes.">coap_error</a> </dd>
<dd>
coap_init_pdu </dd></dl>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a18cfdd40118563c137b6b911332dde6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18cfdd40118563c137b6b911332dde6e">&#9670;&nbsp;</a></span>coap_options</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structpcoap__option__names.html">pcoap_option_names</a> coap_options[<a class="el" href="picocoap_8h.html#a32c693bd3dc87d85f8256028e9f0e0bf">COAP_OPTIONS_LENGTH</a>]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Initial value:</b><div class="fragment"><div class="line">= {</div>
<div class="line">        { 1, <span class="stringliteral">&quot;if-match&quot;</span> },</div>
<div class="line">        { 3, <span class="stringliteral">&quot;uri-host&quot;</span> },</div>
<div class="line">        { 4, <span class="stringliteral">&quot;etag&quot;</span> },</div>
<div class="line">        { 5, <span class="stringliteral">&quot;if-none-match&quot;</span> },</div>
<div class="line">        { 7, <span class="stringliteral">&quot;uri-port&quot;</span> },</div>
<div class="line">        { 8, <span class="stringliteral">&quot;location-path&quot;</span> },</div>
<div class="line">        { 11, <span class="stringliteral">&quot;uri-path&quot;</span>} ,</div>
<div class="line">        { 12, <span class="stringliteral">&quot;content-format&quot;</span> },</div>
<div class="line">        { 14, <span class="stringliteral">&quot;max-age&quot;</span> },</div>
<div class="line">        { 15, <span class="stringliteral">&quot;uri-query&quot;</span> },</div>
<div class="line">        { 17, <span class="stringliteral">&quot;accept&quot;</span> },</div>
<div class="line">        { 20, <span class="stringliteral">&quot;location-query&quot;</span> },</div>
<div class="line">        { 35, <span class="stringliteral">&quot;proxy-uri&quot;</span> },</div>
<div class="line">        { 39, <span class="stringliteral">&quot;proxy-scheme&quot;</span> },</div>
<div class="line">        { 60, <span class="stringliteral">&quot;size1&quot;</span> },</div>
<div class="line">        { 258, <span class="stringliteral">&quot;no-response&quot;</span>}</div>
<div class="line">}</div>
</div><!-- fragment -->
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
